package com.rongc.client.freight.business.waybill.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.UniApplication;
import com.rongc.client.freight.base.request.result.NullResult;


/*
*  货主拒绝车主接单
* */

public class WaybillCancelApi extends AbsRequest<WaybillCancelApi.WaybillCancelParams, NullResult> {

    public WaybillCancelApi(WaybillCancelParams feedbackParams, Listener<NullResult> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getWaybillCancelUrl(), feedbackParams, listener, errorListener, NullResult.class);
    }

    public static class WaybillCancelParams extends BaseParams {

        public WaybillCancelParams(String truckId) {
            put("id",truckId);
            put("userId", UniApplication.getInstance().getUserInfo().getUserId());

        }
    }


}
